Lost a new commercial user this week :(

evenex via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 15 20:16:54 PST 2014


On Tuesday, 16 December 2014 at 03:50:59 UTC, Rikki Cattermole 
wrote:
> Its mostly for CTFE, not stuff your general dev will touch even 
> in D.
> Like generating javascript from data models or routes [0].
>
> Summary:
> "Helper functions" where by they have one task that does not 
> change, and can be gained purely from the parameters given 
> (mostly template args).
> "Generator functions" where by they do some task that requires 
> "helper functions" but cannot be ran at CTFE or generate code 
> to be ran at runtime.
>
> I started writing a small booklet on this, if you got an email 
> if you're interested or some way to send you. Please let me 
> know.
>
> [0] 
> https://github.com/rikkimax/Cmsed/tree/master/source/base/cmsed/base/internal/generators/js

Thanks, I've sent you an email through github. I use the helper 
function pattern a regularly (I think Ali put it in his book) but 
I don't think I'm familiar with generators. Looks useful for 
implementing some lazy UFCS compute kernels I've been considering.


More information about the Digitalmars-d mailing list