Add Kotlin language basics#782
Closed
ryleymao wants to merge 1 commit intocodethesaurus:mainfrom
ryleymao:add-kotlin-language-basics
Closed
Add Kotlin language basics#782ryleymao wants to merge 1 commit intocodethesaurus:mainfrom ryleymao:add-kotlin-language-basics
ryleymao wants to merge 1 commit intocodethesaurus:mainfrom
ryleymao:add-kotlin-language-basics
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
Member
|
You took the checklist out of the PR template. Did you test this on your own first? |
geekygirlsarah
requested changes
Nov 1, 2025
Member
geekygirlsarah
left a comment
There was a problem hiding this comment.
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!
Comment on lines
+8
to
+61
| "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 | ||
| }, |
Member
There was a problem hiding this comment.
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 ).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
language_basics.jsonfor Kotlin 1.5 covering all basic language concepts.Changes
/web/thesauruses/kotlin/1.5/language_basics.jsonResolves #737