Safe Null Handling in Ceylon: exists, else, and nonempty
Ceylon rejects direct dereference of nullable types. Use exists, else, and nonempty to handle null safely, with scoping limits and toolchain checks.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Ceylon rejects direct dereference of nullable types. Use exists, else, and nonempty to handle null safely, with scoping limits and toolchain checks.
Run independent host checks concurrently in Ceylon using future, async, and run, with bounds on fan-out and exception handling at await.
Ceylon models nullable types as T|Null unions and uses intersection types for mixin composition—no Optional wrappers, no inheritance hierarchies. The compiler infers principal types locally, but the language hasn't been updated since 2017.
Make every String|Integer variant explicit in Ceylon so the compiler catches missing branches before runtime.
Learn how Ceylon’s module system lets you expose only the API you choose, hide internal code, and keep dependencies from colliding across teams.
Ceylon modules make dependencies first-class with named, versioned descriptors and compile-time version range resolution, turning classpath drift into a build-time error.
Ceylon’s `of` clause creates closed variant sets and its exhaustive `switch` turns adding a new case into a compiler-guided refactor instead of a code-review gamble.
Ceylon removes Java's wildcard boilerplate with declaration-site variance and type inference, but JVM erasure means bridge methods and hidden casts remain. Here is how to verify the tradeoff before adopting it.
A task guide to declaring a Ceylon module descriptor, resolving dependencies, compiling, running, and packaging a self-contained JVM archive with the Ceylon CLI.