dworkin / dgd

Dworkin's Game Driver, an object-oriented database management system originally used to run MUDs.
https://www.dworkin.nl/dgd/
GNU Affero General Public License v3.0
103 stars 31 forks source link

features wanted #17

Closed seikichin closed 5 years ago

seikichin commented 5 years ago

how about make a feature to support text block like: @HereDoc some texts @HereDoc no matter what between @HereDoc are texts. This feature is more convenient.

quixadhal commented 5 years ago

Nothing prevents you from either modifying the DGD grammar to accomplish this yourself, or simply putting your pre-formatted stuff in files and having your code read them in when the object is created, if you really don’t want to type a bunch of backslashes. The read_file() kfun is pretty easy to use.

Sent from Mail for Windows 10

From: seikichin Sent: Wednesday, August 7, 2019 1:30 AM To: dworkin/dgd Cc: Subscribed Subject: [dworkin/dgd] features wanted (#17)

how about make a feature to support text block like: @Heredoc some texts @Heredoc no matter what between @Heredoc are texts. This feature is more convenient. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

seikichin commented 5 years ago

thank you let me have try the read_file

---Original--- From: "Dread Quixadhal"notifications@github.com Date: Wed, Aug 7, 2019 21:06 PM To: "dworkin/dgd"dgd@noreply.github.com; Cc: "Author"author@noreply.github.com;"seikichin"seikichin@qq.com; Subject: Re: [dworkin/dgd] features wanted (#17)

Nothing prevents you from either modifying the DGD grammar to accomplish this yourself, or simply putting your pre-formatted stuff in files and having your code read them in when the object is created, if you really don’t want to type a bunch of backslashes. The read_file() kfun is pretty easy to use.

Sent from Mail for Windows 10

From: seikichin Sent: Wednesday, August 7, 2019 1:30 AM To: dworkin/dgd Cc: Subscribed Subject: [dworkin/dgd] features wanted (#17)

how about make a feature to support text block like: @Heredoc some texts @Heredoc no matter what between @Heredoc are texts. This feature is more convenient. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dworkin commented 5 years ago

I am not planning to add such string blocks to the the language, there are many alternative solutions already available.