4 ms·
That's a neat idea! (Though not necessarily in the spirit of AWK as a simple text processing language. :-) I started playing with something like this in a previ
by benhoyt 8y ago
That's a neat idea! (Though not necessarily in the spirit of AWK as a simple text processing language. :-) I started playing with something like this in a previous language interpreter I made in Go (https://github.com/benhoyt/littlelang/blob/master/interpreter/native.go https://github.com/benhoyt/littlelang/blob/master/interprete...). It's definitely possible to do with the reflect package, though it wouldn't be trivial to do a full implementation.