Advanced Type System
- Q254: What is the Any type and when should I use it?
- Q255: How does method resolution work with overloading?
- Q256: What is the Void type in EK9?
- Q257: How do constrained types work in EK9?
- Q258: What is type coercion and promotion in method calls?
- Q259: How does EK9's Result type differ from other languages?
- Q260: What types can be used as Dict keys?
- Q716: How do arithmetic operators work on constrained types?
- Q717: How do comparison operators work between constrained types and their base types?
- Q718: How do I extract the base type value from a constrained type?
- Q719: How do copy, replace, and merge operators work with constrained types?
- Q720: What built-in types can be constrained in EK9?
- Q721: How do I use constrained types as function parameters for type safety?
- Q722: How do constrained types relate to the type hierarchy?
- Q951: What happens when you pass the wrong kind of construct as a parameter?
- Q956: Why can't I constrain a Boolean type in EK9?
- Q1074: How do I use a constrained type as a field in a record?
- Q1125: Create a dynamic function that captures a prefix variable and prepends it to input.
- Q1126: Create a dynamic class that implements a Describable trait inline.
- Q1127: Create a dynamic class with multiple methods implementing a trait inline.
- Q1128: Pass a dynamic class as a function argument.
- Q1181: Create a dynamic function that captures a greeting and prepends it to any input.
- Q1185: Define a Percentage type constrained to values between 0 and 100.
- Q1296: How do I capture a value into a dynamic function/class without sharing mutations with the caller?
- Q1366: How do I work with very large integers (BigInteger) in EK9?
- Q1367: How do I get exact decimals (BigDecimal) in EK9?
- Q1368: How do I generate random numbers, and make them reproducible, in EK9?
- Q1369: How do I do trigonometry and use maths constants in EK9?