Conversation

omgg Janet lets you have docstrings for variables as well as functions! I love that so much

https://janet-lang.org/docs/bindings.html

2
2
6

it also has really nice short-form lambda syntax omggg

https://janet-lang.org/docs/functions.html

I’m slowly falling in love with this language

2
2
4

@kasdeya Godot GDScript does that too! If you do it for @export variables it plonks the description down in a tooltip when you hover over the setting.

1
0
1
@kasdeya I'm looking intensively at it for inspirations to put into Kittyscript
1
0
1

the one thing I don’t like about Janet so far is that it doesn’t have anything like {JSDoc / LDoc / Python’s type annotations} that:

  • provides a standardized way to document what types a function expects
  • integrates with LSPs to do static type checking

but this might not be too big of a deal if you just write unit tests for your functions - which IMO is very good practice anyway. still makes me feel kinda uncomfy though

0
0
1

@LunaDragofelis ooh is Kittyscript a Lisp that you’re working on?

1
0
1

@topaz oohh I love that omg. I really wish Python had a feature like that

0
0
1
@kasdeya Kittyscript is a programming language I'm working on that's planned to use a Lisp-like abstract syntax tree, and allow plugging in and even mixing different textual syntaxes.
1
0
1

@LunaDragofelis woahh interesting. so essentially there would be multiple parsers that can handle different styles of syntax and turn them all into the same S-expression data-structures at the end?

1
0
1
@kasdeya Yes, there will be a parser combinator system as part of the standard library. I haven't decided yet what the "standard" syntax will look like, can't decide between classic Lisp and something more Java-like.
0
0
1