I have the same question as this previously asked question, but I want to achieve this in Scala 3. I have searched for the libraries used in the first answer for Scala 3, but I couldn't find them. How can I do it?
Asked
Active
Viewed 70 times
2

Dmytro Mitin
- 48,194
- 3
- 28
- 66

M Ahsan Al Mahir
- 21
- 1
- 3
-
https://stackoverflow.com/questions/70945320/how-to-compile-and-execute-scala-code-at-run-time-in-scala3 https://stackoverflow.com/questions/71390113/get-annotations-from-class-in-scala-3-macros It's compiling and executing from a string but it's not difficult to read a string from an external file. – Dmytro Mitin Sep 30 '22 at 11:05