I have LOCALS| as an add-on as there may be times I'll want to try outI got locals as well - but in a quite different form. And yes, it is documented as well. I cannot implement the "Hayes" variant without embedding it in the
code that uses locals. I also supply a Hayes-converter - not because
I consider the form superior but because it could be implemented so
easily. The 'how' impressed me far more than the 'what' it did.
On Saturday, July 16, 2022 at 8:54:55 AM UTC+2, dxforth wrote:
I have LOCALS| as an add-on as there may be times I'll want to try outI got locals as well - but in a quite different form. And yes, it is documented
code that uses locals. I also supply a Hayes-converter - not because
I consider the form superior but because it could be implemented so
easily. The 'how' impressed me far more than the 'what' it did.
as well. I cannot implement the "Hayes" variant without embedding it in the 4tH kernel - and it's not worth it IMHO.
Yes, I've used locals when porting some stuff and it works quite reliably. But
it represents a style I do not want to adopt. I'd rather return to C before doing
that.
When I designed 4tH it was primarily because I wanted to make a language
that could be embedded into another program. Yeah, as a matter of fact, it's basically a "side project" that completely got out of hand.
A language needs programs, though. So I started to make a few examples. I
was convinced the language needed an editor - because all languages I had known so far always came with an editor.
And before I knew it, I did most development in 4tH - only getting back to C when enhancing the compiler. Then I found out that for some strange reasons (which I still haven't completely figured out yet) I could do MUCH more complex
programs faster in 4tH than I ever could in C.
E.g. the preprocessor came out of a CASE..ENDCASE converter - I just had that one lying around and it seemed a good base to build upon. Now it has a functionality that challenges M4 - and I'm not quite sure how for Petes sake I
got there. I wouldn't even dream to convert it to C. I wouldn't know where to begin.
And that goes for lots of programs. I use 4tH for work as well - you know, these
simple tools dedicated to do one single nagging task. I've often produced solid
working code in time frames I wouldn't imagine to be achievable with C.
With stack stuff and all.
That's my fascination with this language.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 502 |
Nodes: | 16 (3 / 13) |
Uptime: | 210:58:37 |
Calls: | 9,878 |
Calls today: | 6 |
Files: | 13,791 |
Messages: | 6,205,013 |