Conversation started Dec 26, 2015 at 17:48.
Dec 26, 2015 17:48
It's the same as creating an extension method in C# -- you're extending the behaviour of a specific type with a specific functionality. The compatibility issue is moot: if a new function is introduced that does this for you then you just remove your own definition and that's that. Provide unit tests and you will know if a breaking change is introduced which you can act accordingly upon. — Jeroen Vannevel 2 mins ago
1 hour later…
Dec 26, 2015 19:40
5

Title says it all. I'm basically initializing a two-dimensional array and changing the fields one at a time.
It might be a good idea to do this OO.
A Grid class seems right, perhaps as a subclass of Array. So far I haven't been able to successfully port it. Pointers would probably be a good idea...
Conversation ended Dec 26, 2015 at 20:21.
Extension methods in C# != Extending the prototype in JavaScript
Dec '1526
Web Development
Everything Web
Participants
- Dan Pantry 64%
- Mast 35%
all times are UTC