OK
automod
Our great sponsors
OK | automod | |
---|---|---|
12 | 3 | |
497 | 150 | |
- | - | |
0.0 | 6.1 | |
over 1 year ago | 26 days ago | |
Go | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
OK
-
Looking for programming languages created with Go
- https://github.com/jesseduffield/OK
- [humour/satire] Just came across the "OK?" language, thought people here might appreciate it ."OK?s mission is to do away with the needless complexity of today's programming languages and let you focus on what matters".
- [RE: ternary operator] Disgusting, we agree. Einstein, Tesla, and Newton all died long ago, so there's really only a handful of humans left on Earth who are capable of parsing that stupifying syntax. What does the question mark mean? What does the colon mean?
-
The OK? Programming Language
I'm not certain, but this first example seems like they are joking: https://github.com/jesseduffield/OK#conditionals
Does anyone find the C ternary operator conditional expression hard to read?
And, in Lisps, all conditionals are expression special forms (there's no distinction between statements and expressions like in C), so it's even more comfortable there:
(if isprod "prod" "dev")
- "You shouldn't need to use juvenile word separators like underscores or camelCase because if you can't capture the meaning of a variable in a single word, that's a sign that you need to refactor."
-
Go'ing Insane Part Two: Partial Privacy
Your OK? language is brilliant. Our codebase rewrite is underway.
- OK? Programming Made Simple Again
automod
-
Rust macro’s limitations
The automod macro does what you described: https://github.com/dtolnay/automod
-
Go'ing Insane Part Two: Partial Privacy
The example in the article has a module defined in-line using the `mod` keyword, and as for including the whole directory, you'll need to use `mod my_file` for each file in the `mod.rs` file. This makes sense in my head because it's like you're just saying `mod ` as if you were doing it inline. I prefer being explicit here (admittedly with limited Rust usage like yourself) but you can use a macro to auto-include every file in a directory: https://github.com/dtolnay/automod
-
Is it possible to automatically define all mods in a program?
The automod crate can help with this.
What are some alternatives?
vigil - Vigil, the eternal morally vigilant programming language
ocaml - The core OCaml system: compilers, runtime system, base libraries
comet - A programming language implementation in Go.
gojq - Pure Go implementation of jq
rye - homoiconic dynamic programming language with some new ideas
slurp - Slurp is a highly customisable LISP toolkit for Go applications. 💻
go - The Go programming language
wdte - WDTE is a simple, functional-ish, embedded scripting language.
starlark-go - Starlark in Go: the Starlark configuration language, implemented in Go
go-algorand - Algorand's official implementation in Go.
ivy - ivy, an APL-like calculator
goawk - A POSIX-compliant AWK interpreter written in Go, with CSV support