Previous: L in brief, Up: Introduction
L has numerous features that makes it a cool language to hack with. Among them:
With L, it is easy to write safe programs with some confined unsafe parts. Just write the unsafe parts carefully, and your program will be both optimized and won't crash.
For instance, you can use pointers (both powerful and unsafe), but L
provides many ways to avoid their use (for instance using Tuples, and
multiple return values) or confine them (using macros, like the
foreach
macro for iterating on lists).
As a corollary, with L, you can optimize your program without sacrificing readability. Dirty hacks can be confined and factorised. If you later change your mind about a hack, you just have to change one place, something that is not always possible e.g. in C.