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.
Decide when to split Ceylon code into multiple modules, compare build and version trade-offs, and compile a two-module example with module.ceylon.
Ceylon's union and intersection types enable precise modeling of heterogeneous data on the JVM while maintaining static type safety and exhaustive pattern matching.
Learn how Ceylon’s module system lets you expose only the API you choose, hide internal code, and keep dependencies from colliding across teams.
Learn how Ceylon’s module system lets you lock in exact dependency versions, control transitive imports, and package modules as JARs for Maven. A step‑by‑step example shows module creation, version ranges, and practical trade‑offs for reproducible builds.
Ceylon modules make dependencies first-class with named, versioned descriptors and compile-time version range resolution, turning classpath drift into a build-time error.