-
Notifications
You must be signed in to change notification settings - Fork 174
Add Kotlin language basics #782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added language_basics.json for Kotlin 1.5 covering: - Type system (statically typed) - Paradigms (OOP, functional, procedural) - Abstraction level (high-level) - Execution method (compiled) - Memory management (automatic/GC) - Entry points (main function, script files) - Comments (single-line, multi-line, KDoc, special) - Library support (standard libs, frameworks) - Hello World minimal program Resolves #737
|
You took the checklist out of the PR template. Did you test this on your own first? |
geekygirlsarah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can go back and edit the parts to show whether the language is or isn't, or has or hasn't have each of these concepts/features, I'd approve this!
If you can do it in the next few days, it should still count towards Hacktoberfest!
| "concepts": { | ||
| "statically_typed": { | ||
| "code": "val x: Int = 5" | ||
| }, | ||
| "dynamically_typed": { | ||
| "not-implemented": true | ||
| }, | ||
| "procedural_language": { | ||
| "code": "fun calculateSum(a: Int, b: Int): Int {\n return a + b\n}" | ||
| }, | ||
| "functional_language": { | ||
| "code": "val numbers = listOf(1, 2, 3, 4, 5)\nval doubled = numbers.map { it * 2 }" | ||
| }, | ||
| "object_oriented_language": { | ||
| "code": "class Person(val name: String, val age: Int)" | ||
| }, | ||
| "low_level_language": { | ||
| "not-implemented": true | ||
| }, | ||
| "high_level_language": { | ||
| "code": "println(\"Hello, World!\")" | ||
| }, | ||
| "compiled_language": { | ||
| "code": "// Kotlin compiles to JVM bytecode or native code", | ||
| "comment": "Kotlin is compiled to JVM bytecode, JavaScript, or native binaries" | ||
| }, | ||
| "interpreted_language": { | ||
| "not-implemented": true | ||
| }, | ||
| "general_purpose_language": { | ||
| "code": "// Kotlin can be used for Android, web, server-side, desktop, etc." | ||
| }, | ||
| "domain_specific_language": { | ||
| "not-implemented": true | ||
| }, | ||
| "manual_management": { | ||
| "not-implemented": true | ||
| }, | ||
| "automatic_management": { | ||
| "code": "// Kotlin uses JVM's garbage collector", | ||
| "comment": "Memory is managed automatically by the JVM garbage collector" | ||
| }, | ||
| "first_generation": { | ||
| "not-implemented": true | ||
| }, | ||
| "second_generation": { | ||
| "not-implemented": true | ||
| }, | ||
| "third_generation": { | ||
| "code": "// Kotlin is a modern third-generation language" | ||
| }, | ||
| "fourth_generation": { | ||
| "not-implemented": true | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this template, the intention is that these are more true/false types of things if the language supports it. So they would all have code blocks that specify true/false. (I realize no language has implemented this yet so you may not have known. The discussion behind is in #679 ).
Added
language_basics.jsonfor Kotlin 1.5 covering all basic language concepts.Changes
/web/thesauruses/kotlin/1.5/language_basics.jsonResolves #737