Menu

Question about the properties's initial

2007-09-24
2013-04-08
  • Nobody/Anonymous

    this.capacity=50;

    Why was it filled with 50?

     
    • Nobody/Anonymous

      Thanks for your question!
      I think that the capacity initial value equal to 50 is understandable.But the internal array's capacity initial value equal to 50 is a bad design.
      In actual fact,Javascrpt supports modifiable array itself,so we can initialize an array with no initial value.
      It's only I who has been working for the JsJava project off hours.I want to optimize the JsJava classes code long way back,but I have no more time on that.
      The size of jsjava-2.0.js is almost 400kb.I need someone help.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.