#bake

Invocation

#bake <procedure>(<type-variable> = <type>) - generate a compiled function with predefined values for type variables. 1

Examples

Examples:

toggle example
named_bake_test.jai
toggle example
internal_bake_test.jai

  1. I can do a thing called ‘bake’, where I use this #bake directive to generate a compiled function. This doesn’t happen at runtime, this is a thing that happens at compile time only, because we’re a compiled language.
    “Polymorphic Procedures, part 1” YouTube, uploaded by Jonathan Blow, Apr 1, 2015, https://youtu.be/BwqeFrlSpuI?t=2170 

jailang 2019 pixeldroid
https://github.com/pixeldroid/jailang
programming pages theme v0.5.21 (https://github.com/pixeldroid/programming-pages)