Positions may change, right?
I think thereâs potential here for a more delightful developer experience for newer developers in particularânew to Kotlin, and new to the entire Java ecosystem. Figuring out âwhere stuff is declaredâ has typically been a challenge for me personally, especially when I began picking up Rust (and now Iâm picking up Kotlin).
It would be nice to have a syntax like Rustâs use declarations
use std::option::Option::{Some, None};
use std::collections::hash_map::{self, HashMap};
⊠or ES6 importsâŠ
import { useEffect, useState } from "react";
Reasoning is:
- I have no idea whatâs inside:
import io.javalin.*
- But this is clear as to what is being pulled into my current file
import io.javalin.Javalin
import io.javalin.apibuilder.ApiBuilder.get
import io.javalin.apibuilder.ApiBuilder.post
- And [potentially] then this would be compact
import io.javalin.{Javalin, apiBuilder.ApiBuilder.{get, post}}
âŠmaybe that looks silly.
Just my 2 cents.