Crystal: [RFC] Add macro method to read a file at compile time

Created on 4 Jun 2016  路  6Comments  路  Source: crystal-lang/crystal

Wanting to embed resources in an executable is probably so common and useful that a special macro method for this would be nice.

draft compiler

Most helpful comment

@asterite Why closed? Is there a PR / reason for this?

All 6 comments

Related to #2639 and #1649

Bump

There's baked_file_system shard, but admittedly having that in stdlib would be nice - partial impl. of File class would come handy too.

@asterite Why closed? Is there a PR / reason for this?

Seems like it's closed because it was implemented already, see crystal-lang/crystal#2791

@NoICE Actually no, it was closed for other reasons and finally got merged in #6967, sometime (2,5yrs+) later. nvm, it's an ancient history now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chocolateboy picture chocolateboy  路  87Comments

RX14 picture RX14  路  62Comments

asterite picture asterite  路  70Comments

malte-v picture malte-v  路  77Comments

asterite picture asterite  路  71Comments