Comments (1)
Yeah, you are correct. "Least powerful rule" ;)
Will change it.
On Sat, Feb 16, 2013 at 11:18:14PM -0800, Dan Kubb wrote:
This is an edge case, but the following code has identical behaviour, provided the same-named method isn't declared in that scope:
Kernel.system(...) system(...)@mbj I know you've said you prefer the first one for understandability. I think if the code works the same with less information, then the other should be preferred.
The same rule can be applied to
self.class
, eg:class MyClass < ParentClass def call(*args) self.class.call(*args) end def one self.class.call(1) end endIn this example the
self.class
could be removed in#one
and the code would continue to work.
Reply to this email directly or view it on GitHub:
#30
Markus Schirp
Phone: +49 201 / 360 379 14
Fax: +49 201 / 360 379 16
Web: www.seonic.net
Email: [email protected]
Twitter: twitter.com/m_b_j
OS-Code: github.com/mbj
Seonic IT-Systems GbR
Anton Shatalov & Markus Schirp
Altendorferstrasse 44
D-45127 Essen
from mutant.
Related Issues (20)
- Choose subjects based on an AST diff when using `--since` HOT 2
- Deprecation warnings for regexp_parser HOT 1
- SQL mutations HOT 1
- Add --seed flag (or similar mechanism) HOT 1
- `--since` flag fails when git is configured with a different diff tool HOT 4
- Add `--debug-worker` flag to make debugging workers easier
- False postive in String#split HOT 2
- License for an open source project HOT 1
- Failing subjects summary
- License for an open source project HOT 1
- Add mechanism to hooks to report "true" source location
- Improve `ignore_patterns` behavior for method removals HOT 1
- Allow `mutant:disable` to apply to inline macros and visibility modifiers
- Mutating Sorbet T nodes even with ignore patterns
- Call `Process.warmup` when eligible HOT 1
- Exception raised when mutating pattern matching HOT 1
- Mutations inserted need to retain constant scope.
- Could not use License due to HTTP 404 Not Found HOT 4
- feat: todo file HOT 3
- feat: Additional mutations around ordering HOT 1
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 mutant.