4 ms·
WAT 3 and WAT 10 were surprising for me. WAT 3 becomes less surprising when you consider that a method on a pointer can be called and can return a valid result
by ainar-g 8y ago
WAT 3 and WAT 10 were surprising for me.
WAT 3 becomes less surprising when you consider that a method on a pointer can be called and can return a valid result even if the pointer is nil.
WAT 10 just seems inconsistent. I said this before, and I'll say it again: shadowing does more harm than good.
The rest are pretty trivial for anyone who worked with the language for over a year or read the documentation carefully.