!amEFGYrRomMpJtiMDK:matrix.org

Scala Metaprogramming

1831 Members
6 Servers

Load older messages


SenderMessageTime
12 Jan 2024
@_discord_803009934760345721:t2bot.iotelephonesanitiser Scala3 question: I have a Class reference and I want to create an instance of it using a macro, knowing that it has a no-args constructor. I know I could do this with reflection, but how would I do it with a Macro? All the examples I've found use Type rather than Class. 13:16:03
@_discord_803009934760345721:t2bot.iotelephonesanitiser changed their display name from TelephoneSanitiser to telephonesanitiser.13:16:10
@_discord_90465897663201280:t2bot.ioandimiller joined the room.15:35:54
@_discord_945331330294624276:t2bot.iozhao_nan changed their display name from Zhao Nan to zhao_nan.17:01:58
@_discord_847509817827786813:t2bot.ioyilin9777 Imo, the best way is to generate a source from the external file - any other way and you start running into issues where the macro isn't recompiled when the external source is changed. 21:09:42
@_discord_231350810565410817:t2bot.ioragnar changed their display name from ragnar#4252 to ragnar.21:32:26
13 Jan 2024
@_discord_967195426275065976:t2bot.ioose_369 changed their display name from OSE to ose_369.00:42:10
@_discord_1118787587398713346:t2bot.ioackory1 joined the room.02:20:37
@_discord_721474407935246456:t2bot.iosom-snytt -Xmacro-settings:<option> Custom settings for macros. for scala 2 03:43:48
@_discord_994449233266606080:t2bot.iokiceyscream joined the room.05:20:04
@_discord_803009934760345721:t2bot.iotelephonesanitiser I was intending to store a reference to the Class objects for the types in an array, all of which would be subclasses of the same base class, but with different behaviour. I'd also like to generate some associated typeclasses, using typeclass derivation, which I think should be possible? 13:13:17
@_discord_870772253057486919:t2bot.iodplyukhin joined the room.18:08:20
19 Jan 2024
@reednadav:matrix.orgReed Nadav joined the room.00:27:32
@jasonkimm:matrix.org@jasonkimm:matrix.org joined the room.14:24:05
@jasonkimm:matrix.org@jasonkimm:matrix.org joined the room.14:29:32
@jasonkimm:matrix.org@jasonkimm:matrix.org left the room.14:29:39
24 Jan 2024
@tobin6579:matrix.orgtobin6579 joined the room.06:34:16
29 Jan 2024
@tommy_pac:matrix.org@tommy_pac:matrix.org joined the room.03:04:31
3 Feb 2024
@jojo404:matrix.org@jojo404:matrix.org joined the room.20:23:18
5 Feb 2024
@jojo404:matrix.org@jojo404:matrix.orgRedacted or Malformed Event19:38:52
6 Feb 2024
@jojo404:matrix.org@jojo404:matrix.org left the room.19:30:29
10 Feb 2024
@tommy_pac:matrix.org@tommy_pac:matrix.orgRedacted or Malformed Event23:43:10
@iksu:matrix.org@iksu:matrix.org left the room.23:55:36
11 Feb 2024
@tommy_pac:matrix.org@tommy_pac:matrix.org left the room.08:53:11
12 Feb 2024
@bigzet200120:matrix.orgnumnerd joined the room.22:31:21
14 Feb 2024
@ckipp:matrix.orgChris Kipp banned @tommy_pac:matrix.org@tommy_pac:matrix.org.10:50:55
@ckipp:matrix.orgChris Kipp banned @jojo404:matrix.org@jojo404:matrix.org.10:51:02
17 Feb 2024
@+tommy_plug:matrix.org@+tommy_plug:matrix.org joined the room.10:57:23
18 Feb 2024
@sethtisue:matrix.orgsethtisue banned @+tommy_plug:matrix.org@+tommy_plug:matrix.org (spam).01:41:43
26 Feb 2024
@tomz_plug:matrix.orgTomz_plug joined the room.21:28:45

There are no newer messages yet.


Back to Room ListRoom Version: 9