Re: [swift-users] Parameter Validation

2015-12-06 Thread Jason Dusek via swift-users
Say for a moment we wanted to capture every such constraint at type level -- with types NonEmptyString and PositiveNonZeroInteger. Would these be declared as structs in Swift? ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mail

Re: [swift-users] Parameter Validation

2015-12-06 Thread David Hart via swift-users
I’m looking at the special case of library code. If I surface an API in a library, it’s the library user who will call this function. Would you regard this as an assert or throws scenario? > On 07 Dec 2015, at 08:25, Brent Royal-Gordon via swift-users > wrote: > >> When writing library code,

Re: [swift-users] Parameter Validation

2015-12-06 Thread Jens Alfke via swift-users
> On Dec 6, 2015, at 12:49 PM, David Hart via swift-users > wrote: > > When writing library code, what method of parameter validation would be > suggested? Definitely assert. Assert is for illegal calls, i.e. programmer errors, while errors (throw) are for valid runtime error conditions. >

Re: [swift-users] make: sphinx-build: No such file or directory when generating Documents

2015-12-06 Thread hxx via swift-users
You can use easy_install -U Sphinx instead of brew install sphinx as the README.md said > 在 2015年12月6日,23:31,Khoa Pham via swift-users > 写道: > > I'm checking https://github.com/apple/swift > as of this commit 403b46ccea0bed0150de2bb

Re: [swift-users] [swift-infrastructure] Problems with Swift

2015-12-06 Thread David Farler via swift-users
Hi Dmitriy, [Adding back swift-users in case anyone else hits this, if you don't mind] All paths in $PATH need to be absolute so that the shell can find it from any directory, so it should be something like: export PATH="/absolute/path/to/your/swift/usr/bin:$PATH" Replace '/absolute/path/to/yo

[swift-users] make: sphinx-build: No such file or directory when generating Documents

2015-12-06 Thread Khoa Pham via swift-users
I'm checking https://github.com/apple/swift as of this commit 403b46ccea0bed0150de2bbc3e6407174f31fc0c I'm trying to use sphinx to generate documents - brew install sphinx (sphinx/2.2.9_1) - cd docs - make And I get sphinx-build -b html -W -d _build/doctrees . _build/html make: sphinx-build:

Re: [swift-users] Swift Package website

2015-12-06 Thread Harlan Haskins via swift-users
Awesome! I've made a PR with one of my packages. Thanks for making this! > On Dec 6, 2015, at 4:16 AM, Donald Pinckney wrote: > > Hi all, > I started a repo with a list of packages which build with the current Swift > Package Manager (only tested on OS X). I have very few packages on it, so

Re: [swift-users] REPL failed

2015-12-06 Thread Dmitri Gribenko via swift-users
On Sun, Dec 6, 2015 at 12:10 AM, Thomas# Chiang via swift-users wrote: > > Hi, > > I built swift for Linux(openSUSE 13.2) from source code, by > "./utils/build-script -R" command. > It works for run test.swift file, but can not run on REPL mode, > the error message is: > "LLVM ERROR: Compiler-int

[swift-users] Single Page HTML Book

2015-12-06 Thread Suminda Dharmasena via swift-users
Hello, Can you make the book available in a single page HTML than epub? S ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users