Comments (2)
An exception should be thrown in Elem#apply, right?
Normally, I'd go for IlleglArgumentException or similar, is this bad Scala style?
from anti-xml.
Actually, it should be thrown in the constructor for Elem
. It's easier (and more efficient at runtime) if we stick with the compiler auto-generated apply
method on the Elem
companion object.
IllegalArgumentException
is actually just right for the situation. I'm usually a bit lazy with my exceptions in Scala and I just use RuntimeException
everywhere (which is definitely bad Scala style). :-) That reminds me: I really should go through and replace those instances in Anti-XMLâŚ
from anti-xml.
Related Issues (20)
- Zipper unselection benchmark HOT 7
- Zipper NodeMergeStrategy Should Be Parameter on unselect HOT 1
- Merge strategies should be presented with all of a node's replacements. HOT 1
- Stack Overflow when loading files HOT 1
- anti-xml_2.8.2-0.2 HOT 1
- please update documentation HOT 1
- XML.fromString(xmlString) throws StackOverflowException HOT 3
- Improve support for URI parts in namespaces HOT 8
- Prefix handling is wrong HOT 2
- Update TODO list HOT 1
- Zipper issue replacing nested element
- Zipper issue replacing nested element with ancestor element of same name HOT 2
- Stack Overflow when parsing HTML HOT 1
- Pretty-printing? HOT 3
- Anti-XML and xhtml and empty tags HOT 1
- asInstanceOf in LinkedOrderPreservingMap throws ClassCastException
- Zipper[T].unselect has unnecessarily restrictive return type
- Elem#copy can introduce invalid characters to names/attributes/prefixes
- anti-xml for Scala 2.10 HOT 10
- just an FYI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anti-xml.