Getting Started
- Q1: What does a minimal EK9 program look like?
- Q2: How do I compile and run an EK9 program?
- Q3: How do I print output to the console?
- Q4: How do I read input from the user?
- Q5: How are EK9 source files structured?
- Q6: How do I organize code into modules?
- Q7: How do I manage dependencies in EK9?
- Q8: How do I tag my package so it can be easily found in remote repositories?
- Q9: How can I control the license agreement for my package's code?
- Q10: How do I distinguish between development dependencies and production dependencies?
- Q11: What if there are transitive dependencies I do not want to use?
- Q12: How do I install EK9?
- Q13: What is the difference between a package and a module in EK9?
- Q14: How do I see what dependencies my project has resolved?
- Q15: What is semantic versioning and why must I use it in EK9 packages?
- Q16: How does indentation work in EK9?
- Q17: Where is the main function in EK9?
- Q18: How do I add comments to my code?
- Q19: Can I use EK9 for scripting?
- Q20: What file extension does EK9 use?
- Q21: How do I get help on a specific EK9 type or keyword?
- Q22: How do I declare a variable in EK9?
- Q23: What basic types does EK9 have?
- Q24: How do I convert between types?
- Q25: What is the promote operator?
- Q26: Why does EK9 not have primitives?
- Q27: Is EK9 statically or dynamically typed?
- Q28: How do I declare multiple variables at once?
- Q29: What is the default value of an unset variable?
- Q30: How do I work with Boolean values?
- Q31: How do I work with Date and Time?
- Q32: How do I work with Duration?
- Q33: How do I work with regular expressions?
- Q34: How do I work with colours?
- Q35: How do I work with money and currency in EK9?
- Q36: How do I work with measurements and units in EK9?
- Q37: How do I work with strings in EK9?
- Q38: How do I work with characters in EK9?
- Q39: How do Integer and Float work in EK9?
- Q40: How does the Bits type work in EK9?
- Q41: How does the Millisecond type work in EK9 and how does it relate to Duration?
- Q42: How does the Path type work in EK9 and what is it for?
- Q43: How do I escape characters in EK9 string interpolation?
- Q44: How does the Locale type work in EK9 and how do I format values for different regions?
- Q45: How does the List type work in EK9?
- Q46: How does the Dict type work in EK9?
- Q47: How does the Optional type work in EK9?
- Q48: How does the Result type work in EK9?
- Q49: How do I define a function in EK9?
- Q50: How do function returns work without a return statement in EK9?
- Q51: What are abstract functions in EK9?
- Q52: What are dynamic functions and how do they differ from lambdas?
- Q53: How do closures and variable capture work in EK9?
- Q54: What are pure functions and what is the difference between Consumer and Acceptor?
- Q55: How do I pass functions as delegates in EK9?
- Q56: What are higher-order functions and why should I use them?
- Q57: How can I change method behaviour on a class without subclassing?
- Q58: How do generic functions work in EK9?
- Q59: How do I use functions in stream pipelines?
- Q60: What is function dispatching in EK9?
- Q84: What operations does Optional support in EK9?
- Q85: How do I use Optional in stream pipelines?
- Q86: How do Result guard patterns and ternary access work?
- Q87: What operations and callbacks does Result support?
- Q88: What operations does List support in EK9?
- Q89: How do I use streams and stream pipelines in EK9?
- Q90: What operations does Dict support in EK9?
- Q91: What advanced features do Integer and Float support?
- Q92: How does DateTime work with timezones in EK9?
- Q149: Why does EK9 have a built-in Money type and how does it handle currency safety?
- Q150: How do I convert currencies and format money for display in EK9?
- Q786: Which keywords from other languages are excluded from EK9?
- Q793: Why does EK9 reject None and self as identifiers?
- Q794: Why does EK9 care about operator placement (prefix vs suffix)?
- Q871: How do I print a message to the console in EK9?
- Q872: How do I declare variables and use string interpolation in an EK9 program?
- Q875: What is the structure of an EK9 source file?
- Q879: What is the difference between <-, :=, and :=: in EK9?
- Q880: What features from other languages does EK9 deliberately exclude?
- Q881: I keep getting errors mixing up <- and := in EK9. What is the rule?
- Q883: How does EK9 handle the concept of 'no value' without null?
- Q895: What is the difference between <- and := in EK9?
- Q965: What are the three assignment operators in EK9 and when do I use each?
- Q968: Why does EK9 separate variable declaration from assignment?
- Q972: My variable already exists but <- creates a new one — help!
- Q974: Show me a practical EK9 example using both <- and := together.
- Q986: How does EK9's := differ from Python's := walrus operator?
- Q1000: How do I declare a variable in EK9?
- Q1004: In Rust I check if an Option has a value with is_some(). How do I do this in EK9?
- Q1005: In Go I use := for short variable declaration and = for assignment. How does EK9 handle this?
- Q1006: I'm a Python developer. What are the key differences I need to know for EK9?
- Q1007: I'm a Kotlin developer. What are the similarities and differences with EK9?
- Q1011: In Python I use 'with psycopg2.connect() as conn:' for database connections. How do I manage resources in EK9?
- Q1012: In Python I iterate database rows with 'for row in cursor'. How do I process collections of records in EK9?
- Q1013: In Python I build SQL queries with f-strings. How do I build strings safely in EK9?
- Q1026: Review this class. Are the names meaningful and consistent?
- Q1027: Review this design. Should I use composition instead of a large class?
- Q1028: Write a module-level documentation comment explaining what this code does for a future maintainer.
- Q1029: My code uses := for the first variable. Fix it with the minimum change.
- Q1030: Review this function. Is it too complex?
- Q1031: Explain the design decisions in this EK9 code for a team wiki.
- Q1032: My function uses return to send back a value. How do I fix it?
- Q1033: I used := to create a list. How do I fix it?
- Q1036: Plan a search feature in EK9. What constructs should I use?
- Q1037: Plan a refactoring to improve this code. What EK9 constructs should I use?
- Q1040: I used := to create a variable and got an error. Why?
- Q1041: I come from Python. I keep using := where I should use <-. How do I remember the difference?
- Q1042: I come from Go. How does EK9 assignment differ from Go's := and =?
- Q1054: My code has three errors. Fix them all with minimal changes.