News for hackers. Stuff that matters.
Re:Ohm – A library and language for building parsers, interp... by anonymoushn on Sunday March 28, 2021 @05:19AM (#26608983)
By type-driven dispatch do you mean dynamic dispatch on more than 1 parameter? Most statically typed languages do not have this and you have to write a bunch of boilerplate to get them to pretend that they do.
Re:Ohm – A library and language for building parsers, interp... by mintplant on Monday March 29, 2021 @04:13PM (#26627576)
No, I'm referring to things like specialization, which you'll see used in any large language runtime built in C++, for example.
Re:Ohm – A library and language for building parsers, interp... by anonymoushn on Monday March 29, 2021 @05:24PM (#26628345)
So "type driven dispatch" meant only dispatch that can be decided at compile time? Is it even called dispatch at that point?
Re:Ohm – A library and language for building parsers, interp... by mintplant on Wednesday March 31, 2021 @12:56AM (#26643673)
Yeah, static dispatch.