Open samuelgoto opened 6 years ago
Interesting use case in constructors for Ruby:
https://mixandgo.com/blog/mastering-ruby-blocks-in-less-than-5-minutes
let car = new Car() { ::color = 1; ::size = "large"; }
Could that lead to something like abstract classes?
sort([2, 3, 1, 4], new Comparator() { ::compare do (a, b) { return a < b; } })
Are there enough use cases that makes this motivated enough? If so, which are the most compelling ones?
Interesting use case in constructors for Ruby:
https://mixandgo.com/blog/mastering-ruby-blocks-in-less-than-5-minutes
Could that lead to something like abstract classes?
Are there enough use cases that makes this motivated enough? If so, which are the most compelling ones?