Koning Van Worcester 👑️ on Nostr: Had some fun using mixin templates in D to put this together. The usefulness for me ...
Had some fun using mixin templates in D to put this together. The usefulness for me is that this will aid me in my compiler as I finalise some features that I want to add, many of which require modifying the parser's methods to accept many different flags and which, at times, can become quite hard to keep track of if you don't have an easy way to see what arguments are coming in for which formal parameters at any given time.
https://github.com/deavmi/niknaks/pull/13#dlang #templates #metaprogramming
Published at
2024-03-02 09:22:23Event JSON
{
"id": "4e067be5a699c427a0383cf55fb0f4e8e67994dc745c7b2c3e941d6e9dda8f1d",
"pubkey": "b200125992ab7f3af24d7cdfc2fbed0b530acf1f8bd9b6c7bd37d6760a6b094e",
"created_at": 1709371343,
"kind": 1,
"tags": [
[
"t",
"dlang"
],
[
"t",
"templates"
],
[
"t",
"metaprogramming"
],
[
"proxy",
"https://ieji.de/users/deavmi/statuses/112025360381020758",
"activitypub"
]
],
"content": "Had some fun using mixin templates in D to put this together. The usefulness for me is that this will aid me in my compiler as I finalise some features that I want to add, many of which require modifying the parser's methods to accept many different flags and which, at times, can become quite hard to keep track of if you don't have an easy way to see what arguments are coming in for which formal parameters at any given time.\n\nhttps://github.com/deavmi/niknaks/pull/13\n\n#dlang #templates #metaprogramming",
"sig": "9c81426b209bae924857f049e7f6935820e0a0abdc788f47111fc90c07b8d5aa30c4f8003673dba49e05aed6435fc94edca7a6f572848e5e11efab10062d15a5"
}