On Tuesday, 10 July 2018 at 13:14:24 UTC, Piotr Mitana wrote:
Hello,

I've recently started building a little REST application on vibe.d. I decided to use the "database" library, as I need to communicate with the PostgreSQL instance.

During the compilation I see the deprecation warning:
"Non-@safe methods are deprecated in REST interfaces"

So two questions rise:

1. Will non-@safe methods in REST be disallowed someday?
2. Isn't it too restrictive? If it IS to be disallowed someday, I just won't be able to call most libraries from REST, as I expect the database library for example is definitely not @safe and cannot be.

If I post in the wrong forum, please drop me a line where should I post instead.

It's supposed to make webservers safe and not crash because of segmentation faults, etc.

If you still want to write code like you are used to and don't care about that in your webserver, just mark everything in the implementation @trusted (but @safe in the interface) and it will be fine.

Reply via email to