Hey all. I'm new to Java/Kotlin so i apologize if ...
# getting-started
n
Hey all. I'm new to Java/Kotlin so i apologize if this is a stupid question. From the spring boot tutorial (https://spring.io/guides/tutorials/spring-boot-kotlin/) under "Writing your first Kotlin Controller' i see
Copy code
Here we import the `org.springframework.ui.set` extension function in order to be able to write `model["title"] = "Blog"` instead of `model.addAttribute("title", "Blog")`
Is there a term for this seemingly-magic behavior where importing an extension function seems to enable extra syntax? I'd like to read more about it to better understand how it works.. I hope that makes sense.